projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d61f17a
)
minios: avoid putting trailing \0 in xenstore
author
Keir Fraser
<keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:40:30 +0000
(11:40 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:40:30 +0000
(11:40 +0000)
xenstore expects to get the exact amount of data, without
the trailing \0.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
extras/mini-os/xenbus/xenbus.c
patch
|
blob
|
history
diff --git
a/extras/mini-os/xenbus/xenbus.c
b/extras/mini-os/xenbus/xenbus.c
index 147cef13313ea51e95c38c9266ef31a329c668ef..a6475a960d8f61cedef40844b52d6de0f6f436c2 100644
(file)
--- a/
extras/mini-os/xenbus/xenbus.c
+++ b/
extras/mini-os/xenbus/xenbus.c
@@
-453,7
+453,7
@@
char *xenbus_write(xenbus_transaction_t xbt, const char *path, const char *value
{
struct write_req req[] = {
{path, strlen(path) + 1},
- {value, strlen(value)
+ 1
},
+ {value, strlen(value)},
};
struct xsd_sockmsg *rep;
rep = xenbus_msg_reply(XS_WRITE, xbt, req, ARRAY_SIZE(req));